FROM registry.cn-hangzhou.aliyuncs.com/anqi-tools/anqi-oraclejdk8
COPY target/data-system-1.0.0-SNAPSHOT.jar /publish/data-system.jar
#设置工作目录为 `/publish` 文件夹，即容器启动默认的文件夹
WORKDIR /publish
#设置变量
ENV PORT=1009
ENV SERVICE_NAME="ottalarmsys"
ENV DEFULT_HOST_NAME="192.168.60.10"
ENV CCDATA_HOST_NAME="192.168.60.6"
ENV CCDATA_PORT="3306"
ENV CCDATA_UN="root"
ENV CCDATA_PWD="1qazXSW@"
ENV CCDATA_DB_NAME="ott_alarm_dev"
# true是打开跨域配置，false是关闭
ENV CORS_ENABLE=false
# eureka 设置
ENV EUREKA_ENABLE=true
ENV EUREKA_PREFER_IP_ADDRESS=true
ENV EUREKA_IP_ADDRESS=192.168.60.10

ENTRYPOINT ["java","-jar","data-system.jar"]
